package o;

import android.content.Context;
import android.content.pm.SharedLibraryInfo;
import android.os.Build.VERSION;
import androidx.annotation.NonNull;
import com.tencent.mm.opensdk.modelmsg.WXMediaMessage;
import java.util.ArrayList;
import java.util.List;

public class cga {
    private static String ॱ = null;

    cga() {
    }

    @NonNull
    private static List<String> ˊ(@NonNull Context context) {
        List<String> arrayList = new ArrayList();
        if (VERSION.SDK_INT >= 26) {
            for (SharedLibraryInfo sharedLibraryInfo : context.getPackageManager().getSharedLibraries(WXMediaMessage.DESCRIPTION_LENGTH_LIMIT)) {
                if (sharedLibraryInfo.getName() != null) {
                    arrayList.add(cgb.ˊ(sharedLibraryInfo.getName()));
                }
            }
        }
        return arrayList;
    }

    public static String ˏ(@NonNull Context context) {
        if (ॱ == null) {
            ॱ = bks.ˏ(ˊ(context), ",");
        }
        return ॱ;
    }
}
